import 'element-plus/dist/index.css';
import 'vue-cropper/dist/index.css';
import '@/assets/css/base.css';

import { createApp } from 'vue';
import { createPinia } from 'pinia';
import App from './App.vue';
import router from './router';
import components from './components/global';
import ElementPlus from 'element-plus';
import VueCropper from 'vue-cropper'; 

const app = createApp(App);

for (const i in components) {
  app.component(i, components[i])
}

app.use(createPinia());
app.use(router);
app.use(ElementPlus);
app.use(VueCropper);

app.mount('#app');